Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@coral-xyz/anchor
Advanced tools
TypeScript client for Anchor programs.
@coral-xyz/anchor
depends on node.js native modules. Therefore, webpack 5 will not work with current version. You will either need to rollback to webpack 4, or use a polyfill for each missing dependency.[0.29.0] - 2023-10-16
See the Anchor 0.29 release notes for a high-level overview of how to update.
AccountInfo
(#2656).get_lamports
, add_lamports
and sub_lamports
methods for all account types (#2552).DynSigner
to simplify use of Client<C> where <C: Clone + Deref<Target = impl Signer>>
with Solana clap CLI utils that loads Signer
as Box<dyn Signer>
(#2550).anchor build
still uses parsing method to generate IDLs, use anchor idl build
to generate IDLs with the build method (#2011)..anchorversion
file to facilitate switching between different versions of the anchor-cli
(#2553).anchor.workspace.myProgram
, anchor.workspace.MyProgram
... (#2579).mpl-token-metadata
crate (#2583).TokenRecordAccount
for pNFTs (#2597).Box
the inner enums of anchor_lang::error::Error
to optimize anchor_lang::Result
(#2600).Program.addEventListener
method (#2627).IdlBuild
trait to implement IDL support for custom types (#2629).idl-build
feature. IDL build method will not work without enabling this feature when using anchor-spl
(#2629).test.upgradeable
, test.genesis.upgradeable
setting in Anchor.toml
to support testing upgradeable programs (#2642).1.17.0
, 1.16
remains supported (#2645).anchor-cli
installation from commit (#2659).toolchain
property in Anchor.toml
to override Anchor and Solana versions (#2649).assert
(#2535).const
in the InitSpace
macro (#2555).1.14
(#2572).anchor build --no-docs
adding docs to the IDL (#2575).associated_token::token_program
constraint (#2603).anchor account
command panicking outside of workspace (#2620).idl
feature has been replaced with idl-build
, idl-parse
and idl-types
features (#2011).parse
method now returns Result<Idl>
instead of Result<Option<Idl>>
(#2582).mpl-token-metadata
dependency to use the client SDK instead of the program crate (#2632).base64-js
dependency (#2635).IdlTypeDefinitionTy
enum has a new variant Alias
(#2637).1.14
is no longer supported, minimum required Solana version is 1.16.0
(#2645).anchor_version
and solana_version
property in Anchor.toml
that was being used in verifiable builds are moved inside toolchain
. They are now being used for all commands in the workspace, not just verifiable builds (#2649).FAQs
Anchor client
The npm package @coral-xyz/anchor receives a total of 111,369 weekly downloads. As such, @coral-xyz/anchor popularity was classified as popular.
We found that @coral-xyz/anchor demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.